export interface newsFromType {
    id?: number
    username: string,
    title: string,
    content: string,
    times: string,
    isShow: string,
    cover: string,
    file: File | null,
}

export interface getTableType extends publicResData {
    data: newsFromType[]
}

export interface previewDataType {
    id: string,
    cover: string
    username: string,
    name: string | null,
    isShow: string,
    times: string,
    content: string,
    title: string,
}

export interface publicResData {
    code: string,
    message: string,
}
export interface newsType {
    avatar: string
    cover: string
    content: string
    id: number
    isShow: string
    name: string
    times: string
    title: string
    username: string
}
export interface resTable extends publicResData {
    data: newsType[]
}